<?php
error_reporting(E_ALL ^ E_NOTICE);
//session_start();
?>
<?php
$value = $_GET['value'];

$connect = mysql_connect('localhost','root','');
mysql_select_db("admintool");

$select = "SELECT * from role_management WHERE rolename like '%$value%'";
//print_r($select);
$sq = mysql_query($select);
/*?><ul><?php
while($row = mysql_fetch_array($sq))
{?><li id="<?php
echo $row[roleid]; ?>"><?php
echo $row[rolename];
?></li>

<?php*/

?><ul style="list-style: none outside none; margin: 0px; padding: 0px;"><?php
while($row = mysql_fetch_array($sq))
{?><li id="<?php
echo $row[roleid]; ?>"><?php
echo $row[rolename];
?></li>

<?php
}
?><ul><?php

?>